<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>比特币网站管理系统</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <?php echo $this->Html->css('admin/bootstrap'); ?>
    <?php echo $this->Html->css('admin/bootstrap-responsive'); ?>
    <?php echo $this->Html->css('admin/theme'); ?>
    <?php echo $this->Html->css('admin/font-awesome'); ?>
    <?php echo $this->Html->script('admin/jquery-1.8.1.min'); ?>
    <!-- Demo page code -->
    
    <style type="text/css">
    #line-chart {
    height:300px;
    width:800px;
    margin: 0px auto;
    margin-top: 1em;
    }
    .brand { font-family: georgia, serif; }
    .brand .first {
    color: #ccc;
    font-style: italic;
    }
    .brand .second {
    color: #fff;
    font-weight: bold;
    }
    </style>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7"> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8"> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body>
    <!--<![endif]-->
    
    <div class="navbar">
        <div class="navbar-inner">
            <div class="container-fluid">
                <ul class="nav pull-right">
                    
                    <li id="fat-menu" class="dropdown">
                        <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-user"></i> <?php echo $user['name']; ?>
                        <i class="icon-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="/">网站首页</a></li>
                            <li class="divider"></li>
                            <li><a tabindex="-1" href="/Users/logout">退出</a></li>
                        </ul>
                    </li>
                    
                </ul>
                <a class="brand" href="/admin"><span class="first">Your</span> <span class="second">比特币交易管理面板</span></a>
                <div class="learfix"></div>
            </div>
        </div>
    </div>
    
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span3">
                <div class="sidebar-nav">
                    <div class="nav-header" data-toggle="collapse" data-target="#dashboard-menu"><i class="icon-dashboard"></i>网站管理<span class="label label-info">3</span></div>
                    <ul id="dashboard-menu" class="nav nav-list collapse in">
                        <li><a href="/admin/Merchants/site">网站设置</a></li>
                        <li ><a href="/admin/Merchants/account">网站账户设置</a></li>
                        <li ><a href="/admin/Merchants/trade">交易设置</a></li>
                        <li ><a href="/admin/Merchants/service">服务设置</a></li>
                        <!-- <li ><a href="">邮箱设置</a></li> -->
                    </ul>
                    <div class="nav-header" data-toggle="collapse" data-target="#accounts-menu"><i class="icon-briefcase"></i>用户管理<span class="label label-info">3</span></div>
                    <ul id="accounts-menu" class="nav nav-list collapse in">
                        <li ><a href="/admin/Users/index">全部用户</a></li>
                        <li ><a href="/admin/Charges/charge_index?active=0">充值列表</a></li>
                        <li ><a href="/admin/Charges/takeout_index?active=0">提现列表</a></li>
                    </ul>
                    <div class="nav-header" data-toggle="collapse" data-target="#settings-menu"><i class="icon-exclamation-sign"></i>交易管理<span class="label label-info">2</span></div>
                    <ul id="settings-menu" class="nav nav-list collapse in">
                        <li ><a href="/admin/Orders/index?trade_type=sell">当前卖单</a></li>
                        <li ><a href="/admin/Orders/index?trade_type=buy">当前买单</a></li>
                    </ul>
                    <div class="nav-header" data-toggle="collapse" data-target="#legal-menu"><i class="icon-legal"></i>统计<span class="label label-info">2</span></div>
                    <ul id="legal-menu" class="nav nav-list collapse in">
                        <li ><a href="#">成单记录</a></li>
                        <li ><a href="#">充值记录</a></li>
                        <li ><a href="#">提现记录</a></li>
                    </ul>
                </div>
            </div>
            <div class="span9">
                <?php echo $this->Session->flash(); ?>
                <?php echo $this->fetch('content'); ?>
            </div>
        </div>
        <footer>
            <hr>
            <!-- Purchase a site license to remove this link from the footer: http://www.portnine.com/bootstrap-themes -->
            <p>&copy; 2013 <a href="/">比特币交易系统</a></p>
        </footer>
        <!-- Le javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <?php echo $this->Html->script('libs/bootstrap.min'); ?>
        <?php echo $this->Html->script('admin/jquery.jqplot.min'); ?>
        <?php echo $this->Html->script('admin/graphDemo'); ?>
    </body>
</html>